{:hook('body_start')}
  <div class="container clearfix">
    <h1 class="brandlogo"><a href="index.html"><img src="__TMPL__Public/front/img/logo.png" class="logo_def" alt=""><img src="__TMPL__Public/front/img/retina/logo.png" class="logo_retina" alt=""></a></h1>
    <div class="topinfo">
      <div id="user-nav">
        <ul class="list-inline" id="main-menu-user">
          <li><span>欢迎您：</span></li>
		  <li class="dropdown user login">
            <a class="dropdown-toggle user" data-toggle="dropdown" href="#"> 
              <img src="" class="headicon" style="height: 25px;" />
              <span class="user-nicename"></span><b class="caret"></b>
            </a>
            <ul class="dropdown-menu pull-right">
              <li><a href="{:U('user/center/index')}">
                <i class="fa fa-user"></i> &nbsp;个人中心</a></li>
              <li class="divider"></li>
              <li><a href="{:U('user/index/logout')}">
                <i class="fa fa-sign-out"></i> &nbsp;退出</a>
              </li>
            </ul>
          </li>
          <li class="dropdown user offline" id="menu-messages">
            <a class="dropdown-toggle user" data-toggle="dropdown" data-target="#menu-messages" href="#"> 
              <i class="glyphicon glyphicon-user"></i>
               登录<b class="caret"></b>
            </a>
            <ul class="dropdown-menu navbar-right">
				<li><a href="{:U('api/oauth/login',array('type'=>'sina'))}"><i
						class="fa fa-weibo"></i> &nbsp;微博登录</a></li>
				<li><a href="{:U('api/oauth/login',array('type'=>'qq'))}"><i
						class="fa fa-qq"></i> &nbsp;QQ登录</a></li>
				<li><a href="{:U('user/login/index')}"><i
						class="fa fa-sign-in"></i> &nbsp;登录</a></li>
				<li class="divider"></li>
				<li><a href="{:U('user/register/index')}"><i
						class="fa fa-user"></i> &nbsp;注册</a></li>
            </ul>
          </li>
        </ul>
      </div>
      <div class="infophone">
        <i class="glyphicon glyphicon-earphone"></i>TEL:0391-6688220
      </div>
      <div class="infoaddress">济源市虎岭集聚区济钢厂区内</div>
    </div>
    <div class="clearfix"></div>
    <!-- 主导航 -->
    <nav class="row-nav navbar navbar-inverse">
      <div class="container">
        <div class="navbar-header">
          <button tyle="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-menu">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <div class="navbar-collapse collapse" id="main-menu">
			<?php
			$effected_id="main-menu";
		  	$filetpl="<a href='\$href' target='\$target'>\$label</a>";
		  	$foldertpl="<a href='\$href' target='\$target' class='dropdown-toggle' data-toggle='dropdown'>\$label <b class='caret'></b></a>";
		  	$ul_class="dropdown-menu" ;
		  	$li_class="" ;
		  	$style="nav navbar-nav";
		  	$showlevel=6;
		  	$dropdown='dropdown';
		  	echo sp_get_menu("main",$effected_id,$filetpl,$foldertpl,$ul_class,$li_class,$style,$showlevel,$dropdown);
		?>
			<form action="{:U('portal/search/index')}" method="post" class="navbar-form navbar-right" style="margin-right:10px;">
	            <div class="form-group">
	              <input type="text" placeholder="查询关键字" class="form-control" name="keyword" value="{:I('get.keyword')}">
	            </div>
	            <div class="form-group">
	              <button class="btn btn-warning"><span class="glyphicon glyphicon-search"></span></button>
	            </div>                
	        </form>
		</div>
      </div>
    </nav>
  </div>
<script>
  //////----MENU---////////
jQuery(document).ready(function ($) {
   $('.navbar .dropdown').hover(function() {
     $(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
   }, function() {
     var na = $(this)
     na.find('.dropdown-menu').first().stop(true, true).delay(100).slideUp('fast', function(){ na.removeClass('extra-nav-class') })
   });

   $('.dropdown-submenu').hover(function() {
     $(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
   }, function() {
     var na = $(this)
     na.find('.dropdown-menu').first().stop(true, true).delay(100).slideUp('fast', function(){ na.removeClass('extra-nav-class') })
   });
});
function fix_position()
{
  var uwidth = $('#user-nav > ul').width();
  $('#user-nav > ul').css({width:uwidth,'margin-left':'-' + uwidth / 2 + 'px'});
}
  //$('.login').hide();
</script>

